package com.bcx.crm.service.docTemplateService;

import com.bcx.crm.mapper.docTemplateMapper.UpdateDocTemplateMapper;
import com.bcx.crm.plat.core.utils.SpringContextHolder;
import com.bcx.crm.plat.core.utils.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by ys on 2018/4/1.
 */
@Service
public class UpdateDocTemplateServiceImpl implements UpdateDocTemplateService {

    private static final String UPDATE_DOC_TEMPLATE_MAPPER = "updateDocTemplateMapper";

    @Override
    public boolean updateDocTemplate(Map<String, Object> map) {
        Map<String, Object> map1 = StringUtils.columnAddUnderline(map);
        UpdateDocTemplateMapper updateDocTemplateMapper = SpringContextHolder.getBean(UPDATE_DOC_TEMPLATE_MAPPER);
        return updateDocTemplateMapper.updateDocTemplate(map1);
    }
}
